﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Langben.DAL
{
    [MetadataType(typeof(buyPlanMetadata))]//使用buyPlanMetadata对buyPlan进行数据验证
    public partial class buyPlan : IBaseEntity
    {
      
        #region 自定义属性，即由数据实体扩展的实体
        
        #endregion

    }
    public class buyPlanMetadata
    {
			[ScaffoldColumn(false)]
			[Display(Name = "ID", Order = 1)]
			public object ID { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "planName", Order = 2)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object planName { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "buyType", Order = 3)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object buyType { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "agency", Order = 4)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object agency { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "isApprove", Order = 5)]
			[StringLength(20, ErrorMessage = "长度不可超过20")]
			public object isApprove { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "financeNumber", Order = 6)]
			[StringLength(100, ErrorMessage = "长度不可超过100")]
			public object financeNumber { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "CreateTime", Order = 7)]
			[DataType(System.ComponentModel.DataAnnotations.DataType.DateTime,ErrorMessage="时间格式不正确")]
			public DateTime? CreateTime { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "CreatePerson", Order = 8)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object CreatePerson { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "UpdateTime", Order = 9)]
			[DataType(System.ComponentModel.DataAnnotations.DataType.DateTime,ErrorMessage="时间格式不正确")]
			public DateTime? UpdateTime { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "UpdatePerson", Order = 10)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object UpdatePerson { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "remark", Order = 11)]
			[StringLength(2000, ErrorMessage = "长度不可超过2000")]
			public object remark { get; set; }


    }


}

